package com.haiyangwang1.lesson12.ex1;

import java.util.Scanner;

public class Computer {
    String computerName;
    int computerFist;
    public int showCompuerFist(){
        Scanner input=new Scanner(System.in);

        computerFist=(int)(Math.random()*3)+1;
        switch (computerFist){
            case 1:

                System.out.println("出拳是：剪刀");
                break;
            case 2:
                System.out.println("出拳是：石头");
                break;
            case 3:
                System.out.println("出拳是：布");
                break;
        }

        return computerFist;
    }
}
